ancient maths of india